class ContentNavEntity {
  String? activeTitleColor;
  int? titleSize;
  bool? openture;
  String? bg;
  String? titleColor;
  String? opentureColor;
  String? name;
  List<ContentNavSubEntry>? subEntry;
  int? activeTitleSize;
  String? activeBg;

  ContentNavEntity({
    this.activeTitleColor,
    this.titleSize,
    this.openture,
    this.bg,
    this.titleColor,
    this.opentureColor,
    this.name,
    this.subEntry,
    this.activeTitleSize,
    this.activeBg,
  });

  // fromJson method
  factory ContentNavEntity.fromJson(Map<String, dynamic> json) {
    return ContentNavEntity(
      activeTitleColor: json['active_title_color'] as String?,
      titleSize: json['title_size'] as int?,
      openture: json['openture'] as bool?,
      bg: json['bg'] as String?,
      titleColor: json['title_color'] as String?,
      opentureColor: json['openture_color'] as String?,
      name: json['name'] as String?,
      subEntry: (json['sub_entry'] as List<dynamic>?)?.map((e) => ContentNavSubEntry.fromJson(e as Map<String, dynamic>)).toList(),
      activeTitleSize: json['active_title_size'] as int?,
      activeBg: json['active_bg'] as String?,
    );
  }

  // toJson method
  Map<String, dynamic> toJson() {
    return {
      'active_title_color': activeTitleColor,
      'title_size': titleSize,
      'openture': openture,
      'bg': bg,
      'title_color': titleColor,
      'openture_color': opentureColor,
      'name': name,
      'sub_entry': subEntry?.map((e) => e.toJson()).toList(),
      'active_title_size': activeTitleSize,
      'active_bg': activeBg,
    };
  }
}

class ContentNavSubEntry {
  String? cd;
  int? df;
  int? mainPage;
  String? tagName;
  String? md;
  String? name;
  String? fileUrl;
  String? storeName;
  String? id;
  String? cid;
  String? sid;
  int? status;

  ContentNavSubEntry({
    this.cd,
    this.df,
    this.mainPage,
    this.tagName,
    this.md,
    this.name,
    this.fileUrl,
    this.storeName,
    this.id,
    this.cid,
    this.sid,
    this.status,
  });

  // fromJson method
  factory ContentNavSubEntry.fromJson(Map<String, dynamic> json) {
    return ContentNavSubEntry(
      cd: json['cd'] as String?,
      df: json['df'] as int?,
      mainPage: json['mainPage'] as int?,
      tagName: json['tag_name'] as String?,
      md: json['md'] as String?,
      name: json['name'] as String?,
      fileUrl: json['fileUrl'] as String?,
      storeName: json['storeName'] as String?,
      id: json['id'] as String?,
      cid: json['cid'] as String?,
      sid: json['sid'] as String?,
      status: json['status'] as int?,
    );
  }

  // toJson method
  Map<String, dynamic> toJson() {
    return {
      'cd': cd,
      'df': df,
      'mainPage': mainPage,
      'tag_name': tagName,
      'md': md,
      'name': name,
      'fileUrl': fileUrl,
      'storeName': storeName,
      'id': id,
      'cid': cid,
      'sid': sid,
      'status': status,
    };
  }
}
